﻿<%@ Page Language="C#" Culture="en-GB" MasterPageFile="~/MasterPages/AdminMaster.master" AutoEventWireup="true" CodeFile="CandidateBriefDetailsM.aspx.cs" Inherits="Admin_CandidateBriefDetailsM" %>

<%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>--%>
<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <link rel="stylesheet" href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" />
    <script src="https://code.jquery.com/jquery-1.10.2.js"></script>
    <script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>

    <script type="text/javascript">
        $(function () {
            SetAutoComplete();
        });

        //On UpdatePanel Refresh.
        var prm = Sys.WebForms.PageRequestManager.getInstance();
        if (prm != null) {
            prm.add_endRequest(function (sender, e) {
                if (sender._postBackSettings.panelsToUpdate != null) {
                    SetAutoComplete();
                }
            });
        };

        function SetAutoComplete() {
            $("#txtCandidateName").autocomplete({
                source: function (request, response) {
                    var param = { prefixText: $('#txtCandidateName').val() };
                    $.ajax({
                        url: "CandidateBriefDetails.aspx/GetCandidateName",
                        data: JSON.stringify(param),
                        dataType: "json",
                        type: "POST",
                        contentType: "application/json; charset=utf-8",
                        dataFilter: function (data) { return data; },
                        success: function (data) {
                            if (data.d.length > 0) {
                                response($.map(data.d, function (item) {
                                    return {
                                        label: item.split(',')[0],
                                        val: item.split(',')[1]
                                    }
                                }))
                            }
                            else {
                                $("#txtCandidateName").val("");
                                $("#txtRegistrationNumber").val("");
                                $("#hdnGDCandidateID").val("");
                            }
                        },
                        error: function (XMLHttpRequest, textStatus, errorThrown) {
                            alert(textStatus);
                        }
                    });
                },
                select: function (event, ui) {
                    if (ui.item) {
                        var ss = (ui.item.label).split('[');
                        $("#txtCandidateName").val(ss[0].trim());
                        $("#txtRegistrationNumber").val(ss[1].replace(']', ''));
                        $("#hdnGDCandidateID").val(ui.item.val);
                        return false;
                    }
                },
                minLength: 3
            });
        }
    </script>
    <style type="text/css">
        .autocomplete_completionListElement {
            margin: 0px !important;
            background-color: inherit;
            color: windowtext;
            border: buttonshadow;
            border-width: 1px;
            border-style: solid;
            cursor: default;
            overflow: auto;
            height: 200px;
            text-align: left;
            list-style-type: none;
        }

        /* AutoComplete highlighted item */

        .autocomplete_highlightedListItem {
            background-color: #ffff99;
            color: black;
            padding: 1px;
        }

        /* AutoComplete item */

        .autocomplete_listItem {
            background-color: window;
            color: windowtext;
            padding: 1px;
        }

        #ContentPlaceHolder1_mainMenu {
            width: 98%;
            margin-left: 10px;
            margin-top: 5px;
            height: 30px;
            border: 1px solid #cccccc;
            background-color: #cccccc;
            font-family: Verdana,Arial,sans-serif;
        }

        label {
            font-weight: 300;
            padding: 0px 5px;
        }

        #ContentPlaceHolder1_mainMenu ul {
            height: 60px;
        }

        #ContentPlaceHolder1_mainMenu a.static {
            color: #777;
            font-size: 12px;
            background: #d5d1d1;
            height: 26px;
        }

            /*.static {
            font-size: 10px;
            color: #777;
        }*/

            #ContentPlaceHolder1_mainMenu a.static:hover {
                background-color: #e6e6e6;
                border: 1px solid #eee;
                height: 26px;
                text-align: center;
                float: left !important;
                line-height: 20px;
            }

        .RadioButtonWidthMale label {
            width: 125px;
            margin-left: 6px;
        }

        #ContentPlaceHolder1_mainMenu a.static {
            margin-left: 0px;
            border: 1px solid #eee;
            height: 26px;
            margin-top: 0px;
            text-align: center;
            padding-left: 15px;
            padding-right: 15px;
            float: left !important;
            line-height: 25px;
        }

        .shadow {
            box-shadow: inset 0 0 25px #000000;
            border-radius: 6px;
        }

        .extraBottomRemove tr td label {
            margin-bottom: 0px;
        }

        .extraBottomRemove tr td {
            margin-top: 0px;
            margin-bottom: 0px;
            padding-top: 0px;
            padding-bottom: 0px;
        }

        #ContentPlaceHolder1_mainMenu > tbody {
            /*border: 1px solid #000;*/
        }
            /*#ContentPlaceHolder1_mainMenu > tbody > tr > td
        {
            border-right:1px solid #FFFFFF;
        }*/
            #ContentPlaceHolder1_mainMenu > tbody > tr > td > table {
                border: 1px solid #FFFFFF;
            }

                #ContentPlaceHolder1_mainMenu > tbody > tr > td > table > tbody > tr > td > a {
                    text-decoration: none;
                    color: #5E6163;
                    margin-left: 4px;
                }
                /*#ContentPlaceHolder1_mainMenu > tbody > tr > td > table > tbody > tr > td:hover
        {
            
            color:red;
        }*/
                #ContentPlaceHolder1_mainMenu > tbody > tr > td > table > tbody > tr:hover {
                    background-color: #E6E6E6;
                    text-decoration: none;
                }
        /*#ContentPlaceHolder1_mainMenu > tbody > tr > td > table > tbody > tr > td > a:hover
        {
            
            color:red;
        }*/
        /*#ContentPlaceHolder1_mainMenu > tbody > tr > td > table > tbody > tr
        {
            background-color:red;
            margin-right:-40%;
        }*/
        /*#ContentPlaceHolder1_mainMenu > tbody > tr > td > table > tbody > tr > td 
        {
            background-color:green;
            padding-right:-10%;
        }*/
    </style>
    <script type="text/javascript">

        function validateFileVideoSize() {
            var uploadControl = document.getElementById('<%= filStuDocument.ClientID %>');
            var lblSize = document.getElementById('<%= lblMaxFileSize.ClientID %>');
            if (uploadControl.files[0].size > ('<%=ConfigurationManager.AppSettings["StimulusSizeLimit"]%>')) {

                lblSize.innerText = '<%= ConfigurationManager.AppSettings["StimuluVideoSizeUpdated"]%>';
                //"Uploaded Picture size should not be greater than 5 MB.";
                uploadControl.value = "";
                return false;
            }
            else {
                lblSize.innerText = "";
                return true;
            }
        }
        function validateProposalFileSize() {
            var uploadControl = document.getElementById('<%= filProposal.ClientID %>');
            var lblSize = document.getElementById('<%=lblMaxProposalFileSize.ClientID %>');
            if (uploadControl.files[0].size > ('<%=ConfigurationManager.AppSettings["FileLimitSize"]%>')) {

                lblSize.innerText = '<%= ConfigurationManager.AppSettings["FileSize"]%>';
                //"Uploaded Picture size should not be greater than 5 MB.";
                uploadControl.value = "";
                return false;
            }
            else {
                lblSize.innerText = "";
                return true;
            }
        }

        function validateDiscussionFileSize() {
            var uploadControl = document.getElementById('<%= filGDDocument.ClientID %>');
            var lblSize = document.getElementById('<%=lblMaxDiscussionFileSize.ClientID %>');
            if (uploadControl.files[0].size > ('<%=ConfigurationManager.AppSettings["FileLimitSize"]%>')) {

                lblSize.innerText = '<%= ConfigurationManager.AppSettings["FileSize"]%>';
                //"Uploaded Picture size should not be greater than 5 MB.";
                uploadControl.value = "";
                return false;
            }
            else {
                lblSize.innerText = "";
                return true;
            }
        }


        function validatePastResearchFileSize() {
            var uploadControl = document.getElementById('<%= filePastResearch.ClientID %>');
            var lblSize = document.getElementById('<%=lblMaxPastFileSize.ClientID %>');
            if (uploadControl.files[0].size > ('<%=ConfigurationManager.AppSettings["FileLimitSize"]%>')) {

                lblSize.innerText = '<%= ConfigurationManager.AppSettings["FileSize"]%>';
                //"Uploaded Picture size should not be greater than 5 MB.";
                uploadControl.value = "";
                return false;
            }
            else {
                lblSize.innerText = "";
                return true;
            }
        }

        function validateDOB() {
            var enteredValue = $("#txtDOB");
            var enteredAge = getAge(enteredValue.value);
            if (enteredAge > 18) {
                alert("Start Date not valid");
                enteredValue.focus();
                return false;
            }
        }
        function getAge(DOB) {
            var today = new Date();
            var birthDate = new Date(DOB);
            var age = today.getFullYear() - birthDate.getFullYear();
            var m = today.getMonth() - birthDate.getMonth();
            if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) {
                age--;
            }
            return age;
        }


        var WindowObjectReference; // global variable
        function onClickLink(strPath) {
            WindowObjectReference = window.open(strPath, "DescriptiveWindowName", "resizable=yes,scrollbars=yes,status=yes");

        }

        function onClickLinkProposal(strPathProDoc) {
            WindowObjectReference = window.open(strPathProDoc, "DescriptiveWindowName", "resizable=yes,scrollbars=yes,status=yes");

        }

        function ConfirmationForPreSave() {
            if (confirm("Are you sure you want to Finish Brief ?")) {
                return confirmation();
            }
            else
                return false;

        }

        function confirmation() {
            var chkConfirmStatus, hdnCandidateStatus, hdnStageMode, hdnProposalStageMode, hdnGDStageMode, hdnPastStageMode;
            hdnCandidateStatus = document.getElementById("<%= hdnCandidateStatus.ClientID %>").value;
            hdnStageMode = document.getElementById("<%= hdnStageMode.ClientID %>").value;
            hdnProposalStageMode = document.getElementById("<%= hdnProposalStageMode.ClientID %>").value;
            hdnGDStageMode = document.getElementById("<%= hdnGDStageMode.ClientID %>").value;
            hdnPastStageMode = document.getElementById("<%= hdnPastStageMode.ClientID %>").value;

            //if (hdnCandidateStatus == "22" && hdnStageMode == "1") {
            //    var radiochk = (document.getElementById("ContentPlaceHolder1_rbtQuestion_0").checked)

            //        //alert(radiochk);
            //    if (radiochk == true) {
            //        //alert("hello");
            //        if (document.getElementById("ContentPlaceHolder1_txtQuestionAssessor").value != '') {
            //            //var len = document.getElementById("ContentPlaceHolder1_txtQuestionAssessor").value.length;
            //            //alert(len);
            //            if (document.getElementById("ContentPlaceHolder1_txtQuestionAssessor").value.length <= 500) {
            //                alert("You have submitted Question to Regional Director, Please wait for Reply and then proceed for Proposal Submission.");
            //            }
            //        }
            //    }
            // }



            if (hdnCandidateStatus == "22" && hdnStageMode == "1") {
                chkConfirmStatus = document.getElementById("<%= chkConfirm.ClientID %>");
                if (chkConfirmStatus != null) {
                    if (chkConfirmStatus.checked) {

                        //if (confirm('Are you sure you want to proceed next stage ?')) {
                        //    return true;
                        //}
                        //else {
                        //    return false;
                        //}


                    }
                    else {

                        alert("Please select confirmation to Proceed Next Stage");
                        return false;
                    }
                }
            }


            if (hdnCandidateStatus == "5" && hdnProposalStageMode == "1") {

                chkConfirmStatus = document.getElementById("<%= chkProposal.ClientID %>");
                if (chkConfirmStatus != null) {
                    if (chkConfirmStatus.checked) {

                        //if (confirm('Are you sure you want to proceed next stage ?')) {
                        //    return true;
                        //}
                        //else {
                        //    return false;
                        //}

                    }
                    else {

                        alert("Please select confirmation to Proceed Next Stage");
                        return false;
                    }
                }
            }

            if (hdnCandidateStatus == "6" && hdnGDStageMode == "1") {

                chkConfirmStatus = document.getElementById("<%= chkGDDocument.ClientID %>");
                if (chkConfirmStatus != null) {
                    if (chkConfirmStatus.checked) {

                        //if (confirm('Are you sure you want to proceed next stage ?')) {
                        //    return true;
                        //}
                        //else {
                        //    return false;
                        //}

                    }
                    else {

                        alert("Please select confirmation to Proceed Next Stage");
                        return false;
                    }
                }
            }


            if (hdnCandidateStatus == "7" && hdnMRStageMode == "1") {

               <%-- chkConfirmStatus = document.getElementById("<%= chkPast.ClientID %>");

                if (chkConfirmStatus.checked) {--%>

                //if (confirm("Are you sure you want to submit the report ?")) {
                //    return true;
                //}
                //else {
                //    return false;
                //}

                //}
                //else {

                //    alert("Please select confirmation to submit the report");
                //    return false;
                //}
            }


        }

        function calendarShown(sender, args) {
            sender._popupBehavior._element.style.zIndex = 10005;
        }

        function fn_ProcessAssessorSelection(obj) {
            var varSelValue = $(obj)[0].children[0].checked;
            $('[id^=ContentPlaceHolder1_gvCandidateSelectAssessordate_chkCandidateFirstHalf_]').prop("checked", false);
            $('[id^=ContentPlaceHolder1_gvCandidateSelectAssessordate_chkCandidateSecondHalf_]').prop("checked", false);
            $(obj)[0].children[0].checked = varSelValue;
            if (varSelValue == true) {
                var varVal = $(obj).attr("time").split(':');
                document.getElementById("ctl00_ContentPlaceHolder1_ddlHour").value = varVal[0];
                document.getElementById("ctl00_ContentPlaceHolder1_ddlMinute").value = varVal[1];
                document.getElementById("ctl00_ContentPlaceHolder1_ddlAMPM").value = varVal[2];

            }
        }
    </script>
    <script>
        function calendarShown(sender, args) {
            sender._popupBehavior._element.style.zIndex = 10005;
        }
    </script>
    <table style="width: 100%;" id="TABLE1" cellspacing="1" cellpadding="1" border="0">
        <tbody>
            <tr>
                <td style="height: 50px; vertical-align: top;" align="center">
                    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                    <%--<cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></cc1:ToolkitScriptManager>--%>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <table class="shadow" style="width: 100%;" id="TABLE1" cellspacing="1" cellpadding="1" border="0">
                                <tbody>
                                    <tr>
                                        <td>
                                            <asp:Menu ID="mainMenu" runat="server" RenderingMode="table" Orientation="Horizontal" OnMenuItemClick="mainMenu_MenuItemClick">
                                                <Items>
                                                    <asp:MenuItem Value="0" Text="Brief Details"></asp:MenuItem>
                                                    <asp:MenuItem Value="1" Text="Proposal"></asp:MenuItem>
                                                    <asp:MenuItem Value="2" Text="Group Discussion + Interviews"></asp:MenuItem>
                                                    <asp:MenuItem Value="3" Text="Past Document"></asp:MenuItem>
                                                    <asp:MenuItem Value="4" Text="Assessor Questions"></asp:MenuItem>
                                                </Items>
                                                <StaticMenuItemStyle CssClass="menuItem" />
                                                <StaticMenuItemStyle CssClass="normalmenuItem" />
                                                <StaticSelectedStyle CssClass="selectedItem" />
                                                <StaticHoverStyle CssClass="hoverItem" />
                                            </asp:Menu>
                                            <%--Add a MultiView control to "contain" View controls which will serve as tab pages.--%>
                                            <asp:MultiView ID="mvwCandidateBriefDetails" runat="server" OnActiveViewChanged="mvwCandidateBriefDetails_ActiveViewChanged">
                                                <%--Add View controls, one for each 'tab'.--%>
                                                <asp:View ID="vwTab1" runat="server">
                                                    <table style="width: 95%; margin-top: 10px; margin-left: 25px;" id="tblBriefDetails" cellspacing="1" cellpadding="1" border="0">
                                                        <tbody>

                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: left">
                                                                    <div class="templeteheder">
                                                                        <h2>Brief Details</h2>
                                                                    </div>

                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 45%;">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 54%;">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" class="auto-style4">Brief Name&nbsp;
                                                                </td>
                                                                <td class="auto-style5">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td class="auto-style6" runat="server" id="tdBriefName"></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="vertical-align: text-top; text-align: right;" class="auto-style4">Brief Description&nbsp;
                                                                </td>
                                                                <td class="auto-style2" style="vertical-align: text-top;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td runat="server" id="tdBriefDesc"></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="vertical-align: text-top; text-align: right;" class="auto-style4">Brief Start Date&nbsp;
                                                                </td>
                                                                <td class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td runat="server" id="tdBriefStartDt"></td>
                                                            </tr>
                                                            <tr id="trSpaceEndDate" runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr id="trEndDate" runat="server" visible="false">
                                                                <td style="vertical-align: text-top; text-align: right;" class="auto-style4">Brief End Date&nbsp;
                                                                </td>
                                                                <td class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td runat="server" id="tdBriefEndDt"></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <div class="grd_table" style="overflow-x: auto; margin-left: 12%">
                                                                        <asp:GridView ID="grdBriefDocument" runat="server" AllowPaging="True" Width="80%" AutoGenerateColumns="False">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="DocumentName" HeaderText="&nbsp;Brief">
                                                                                    <ItemStyle Width="85%" HorizontalAlign="Left" VerticalAlign="Top" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />

                                                                                </asp:BoundField>
                                                                                <asp:TemplateField ItemStyle-Width="15%">
                                                                                    <ItemTemplate>
                                                                                        <asp:HyperLink runat="server" NavigateUrl='<%# GetBriefDownload(Eval("DocumentName"))%>' Text="Download"></asp:HyperLink>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>

                                                                            </Columns>
                                                                            <EmptyDataTemplate>
                                                                                <asp:Label ID="lblEmptydata" runat="server" Text="Brief Document is not uploaded." ForeColor="White"></asp:Label>
                                                                            </EmptyDataTemplate>
                                                                            <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                            <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                                                                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                            <EditRowStyle BackColor="#CCCCCC" />
                                                                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <div class="grd_table" style="overflow-x: auto; margin-left: 12%">
                                                                        <asp:GridView ID="grdGDDocument" runat="server" AllowPaging="True" Width="80%" AutoGenerateColumns="False">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="GDDocumentName" HeaderText="Discussion Guide">
                                                                                    <ItemStyle Width="85%" HorizontalAlign="Left" VerticalAlign="Top" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:TemplateField ItemStyle-Width="15%">
                                                                                    <ItemTemplate>
                                                                                        <asp:HyperLink runat="server" NavigateUrl='<%# GetGDDownload(Eval("GDDocumentName"))%>' Text="Download"></asp:HyperLink>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                            <EmptyDataTemplate>
                                                                                <asp:Label ID="lblEmptydata" runat="server" Text="GD Document is not uploaded." ForeColor="White"></asp:Label>
                                                                            </EmptyDataTemplate>
                                                                            <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                            <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                                                                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                            <EditRowStyle BackColor="#CCCCCC" />
                                                                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="vertical-align: text-top; text-align: right; padding-top: 5px;" class="auto-style4">Any questions for Regional Director?&nbsp;<font color="red">*</font>
                                                                </td>
                                                                <td class="auto-style2" style="vertical-align: text-top; padding-top: 5px;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td runat="server" id="td1">
                                                                    <asp:RadioButtonList ID="rbtQuestion" CssClass="RadioButtonWidthMale" runat="server" RepeatDirection="Horizontal" RepeatLayout="Table" AutoPostBack="True" OnSelectedIndexChanged="rbtQuestion_SelectedIndexChanged">
                                                                        <asp:ListItem Value="YES">Yes</asp:ListItem>
                                                                        <asp:ListItem Value="NO">No</asp:ListItem>
                                                                    </asp:RadioButtonList>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">Note :You can make your own assumptions regarding the brief. Asked question only if necessary</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr id="trQuestion" runat="server">
                                                                <td style="text-align: right;" class="auto-style4">Questions for Regional Director&nbsp;<font color="red">*</font>
                                                                </td>
                                                                <td style="text-align: right;" class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:TextBox ID="txtQuestionAssessor" runat="server" TextMode="MultiLine" Height="99px" Width="430px"></asp:TextBox>&nbsp;<br />
                                                                    <asp:RequiredFieldValidator ID="reqQuestionAssessor" ValidationGroup="NextValidation" Display="Dynamic" ForeColor="red" ControlToValidate="txtQuestionAssessor" runat="server" ErrorMessage="Enter question for assessor"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="regQuestionAssessor" Display="Dynamic" ValidationGroup="NextValidation" ForeColor="red" runat="server" ControlToValidate="txtQuestionAssessor" ValidationExpression="^[\s\S]{0,500}$" ErrorMessage="Please submit less than 500 characters only."></asp:RegularExpressionValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td></td>
                                                                <td></td>
                                                                <td>
                                                                    <asp:Label ID="lblQuestionAssessor" Style="float: right; width: 40%;" runat="server" Text=""></asp:Label>
                                                                </td>
                                                            </tr>

                                                            <tr id="trQuestionSpace1" runat="server">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr id="trAssessorComments" runat="server">
                                                                <td style="text-align: right;" class="auto-style4">Regional Director Comments&nbsp;
                                                                </td>
                                                                <td style="text-align: right;" class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:TextBox ID="txtAssessorComments" runat="server" TextMode="MultiLine" Height="99px" Width="430px"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td></td>
                                                                <td></td>
                                                                <td>
                                                                    <asp:Label ID="lblAssessorComments" Style="float: right; width: 40%;" runat="server" Text=""></asp:Label>
                                                                </td>
                                                            </tr>

                                                            <tr id="trQuestionSpace2" runat="server">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="vertical-align: text-top; text-align: right; padding-top: 3px;" class="auto-style4">Please confirm for proceeding to the next step&nbsp;<font color="red">*</font>
                                                                </td>
                                                                <td class="auto-style2" style="vertical-align: text-top; padding-top: 3px;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:CheckBox ID="chkConfirm" Text="" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>

                                                        </tbody>
                                                    </table>
                                                </asp:View>
                                                <asp:View ID="vwTab2" runat="server">
                                                    <table style="width: 98%; margin-top: 10px; margin-left: 25px;" id="tblProposal" cellspacing="1" cellpadding="1" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: left">
                                                                    <div class="templeteheder">
                                                                        <h2>Proposal</h2>
                                                                    </div>

                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 45%;">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 54%;">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="vertical-align: top; padding-top: 10px;" class="auto-style12">Research Lead - Upload Proposal <br /> Moderator - Upload Group Composition&nbsp;<font color="red">*</font></td>
                                                                <td class="auto-style8" style="vertical-align: top; padding-top: 10px;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td class="auto-style9" style="vertical-align: text-top;">
                                                                    <asp:FileUpload ID="filProposal" runat="server" Width="220px" onchange="validateProposalFileSize();" />
                                                                    &nbsp;<asp:Label runat="server" ID="lblMaxProposalFileSize" Text="" ForeColor="Red" Visible="true" ClientIDMode="Static"></asp:Label>
                                                                    <asp:CustomValidator ID="cstProposal" runat="server" Display="Dynamic" ForeColor="red" OnServerValidate="cstProposal_ServerValidate" ValidationGroup="ProposalValidate"></asp:CustomValidator>

                                                                    <label id="lblFileProposal" runat="server" style="color: black;">
                                                                    </label>
                                                                    <br />
                                                                    <label id="lblUploadAlert" runat="server" style="color: red;">After this step, file CANNOT be changed or uploaded again.
                                                                    </label>
                                                                    <br />
                                                                    <asp:Button ID="btnProposal" ValidationGroup="ProposalValidate" runat="server" SkinID="buttonSkin" Text="Upload" OnClick="btnProposal_Click" />

                                                                </td>
                                                            </tr>
                                                            <tr runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;<asp:Label ID="lblMessage" runat="server" Text=""></asp:Label></td>
                                                            </tr>
                                                            <tr id="trComment0" runat="server" visible="false">
                                                                <td align="right" style="vertical-align: central;" class="auto-style12">Comments about the file </td>
                                                                <td class="auto-style8" style="vertical-align: central;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td align="left">
                                                                    <asp:TextBox ID="txtComments" TextMode="MultiLine" runat="server" Height="99px" Width="430px" MaxLength="500"></asp:TextBox><br />
                                                                    <asp:RegularExpressionValidator ID="rgeComments" Display="Dynamic" ValidationGroup="ProposalValidate" ForeColor="red" runat="server" ControlToValidate="txtComments" ValidationExpression="^[\s\S]{0,500}$" ErrorMessage="Maximum 500 characters allowed."></asp:RegularExpressionValidator>
                                                                </td>
                                                            </tr>
                                                            <tr id="trComment1" runat="server" visible="false">
                                                                <td align="right" class="auto-style12">&nbsp;</td>
                                                                <td class="auto-style8">&nbsp;</td>
                                                                <td class="auto-style9">&nbsp;</td>
                                                            </tr>
                                                            <tr runat="server" visible="false">
                                                                <td align="right">&nbsp;</td>
                                                                <td>&nbsp;</td>
                                                                <td align="left">&nbsp;<asp:Button ID="btnCancelProposal" CausesValidation="false" OnClick="btnCancelProposal_Click" runat="server" SkinID="buttonSkin" Text="Clear" />
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <asp:CustomValidator ID="cstGvProposalDocument" runat="server" Display="Dynamic" ForeColor="red" OnServerValidate="cstGvProposalDocument_ServerValidate" ValidationGroup="NextValidation"></asp:CustomValidator></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <div class="grd_table" style="overflow-x: auto; margin-left: 12%;">
                                                                        <asp:GridView ID="gvProposalDocument" runat="server" PageSize="10" AllowPaging="true" Width="80%"
                                                                            DataKeyNames="CandidateBriefDocumentID" OnRowDataBound="gvProposalDocument_RowDataBound" OnRowDeleting="gvProposalDocument_RowDeleting"
                                                                            AutoGenerateColumns="false">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="DocumentPath" HeaderText="&nbsp;Proposal Document">
                                                                                    <ItemStyle Width="20%" HorizontalAlign="Left" VerticalAlign="Top" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>

                                                                                <asp:BoundField DataField="DocumentComment" InsertVisible="true" Visible="false" HeaderText=" Comments ">
                                                                                    <ItemStyle Width="35%" HorizontalAlign="Left" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>

                                                                                <asp:BoundField DataField="DocumentUpdateDate" HeaderText="&nbsp;Document Date ">
                                                                                    <ItemStyle Width="15%" HorizontalAlign="Left" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkDelete" HorizontalAlign="Left" runat="server" CausesValidation="false" CommandArgument='<%# Eval("CandidateBriefDocumentID") %>' CommandName="Delete">Delete</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="10%" />
                                                                                </asp:TemplateField>
                                                                                <%-- <asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit"
                                                                                            CommandArgument='<%# Eval("CandidateBriefDocumentID") %>'>Delete</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>--%>
                                                                                <asp:TemplateField ItemStyle-Width="10%">
                                                                                    <ItemTemplate>
                                                                                        <asp:HyperLink runat="server" NavigateUrl='<%# GetProposalBriefDocumentDownload(Eval("DocumentPath"))%>' Text="Download" HorizontalAlign="Left"></asp:HyperLink>

                                                                                    </ItemTemplate>

                                                                                </asp:TemplateField>

                                                                                <%-- <asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit"
                                                                                            CommandArgument='<%# Eval("CandidateBriefDocumentID") %>'>Download</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>--%>
                                                                            </Columns>
                                                                            <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                            <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                                                                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                            <EditRowStyle BackColor="#CCCCCC" />
                                                                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3" style="text-align: center; font-size: 20px;" id="tdPropAssessorAvailable" runat="server">
                                                                    <b>Available session by Assessor</b>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <div class="grd_table" style="overflow-x: auto; margin-left: 12%;">
                                                                        <asp:GridView ID="grdPropAssessorAvailable" runat="server" PageSize="10" AllowPaging="true" Width="90%" AutoGenerateColumns="false">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="GDDate" HeaderText="Assessment Date" DataFormatString="{0:dd MMM yyyy - dddd}">
                                                                                    <ItemStyle Width="25%" HorizontalAlign="Left" VerticalAlign="Top" />
                                                                                </asp:BoundField>
                                                                                <asp:TemplateField HeaderText="First half (AM)">
                                                                                    <ItemTemplate>
                                                                                        <%# (bool.Parse(Eval("FirstHalfCheck").ToString()) == true ? DateTime.Parse(Eval("FirstHalfTime").ToString()).ToString("hh:mm:00 tt") : "") %>
                                                                                        <itemstyle width="15%" horizontalalign="Left" verticalalign="Top" />
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Second half (PM)">
                                                                                    <ItemTemplate>
                                                                                        <%# (bool.Parse(Eval("SecondHalfCheck").ToString()) == true ? DateTime.Parse(Eval("SecondHalfTime").ToString()).ToString("hh:mm:00 tt") : "") %>
                                                                                        <itemstyle width="15%" horizontalalign="Left" verticalalign="Top" />
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Location - City">
                                                                                    <ItemTemplate>
                                                                                        <%# Eval("GDDayRemark") %>
                                                                                        <itemstyle width="45%" horizontalalign="Left" verticalalign="Top" />
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                            <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                            <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                                                                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                            <EditRowStyle BackColor="#CCCCCC" />
                                                                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="vertical-align: text-top; text-align: right; padding-top: 3px;" class="auto-style4">Please confirm for proceeding to the next step&nbsp;<font color="red">*</font>
                                                                </td>
                                                                <td class="auto-style2" style="vertical-align: text-top; padding-top: 3px;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:CheckBox ID="chkProposal" Text="" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 45%; height: 18px"></td>
                                                                <td class="auto-style3"></td>
                                                                <td style="width: 54%; height: 18px"></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center"></td>
                                                            </tr>

                                                        </tbody>
                                                    </table>
                                                </asp:View>
                                                <asp:View ID="vwTab3" runat="server">
                                                    <table style="width: 98%; margin-top: 10px; margin-left: 25px;" id="tblGroupDiscussion" cellspacing="1" cellpadding="1" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: left">
                                                                    <div class="templeteheder">
                                                                        <h2>Group Discussion + Interviews</h2>
                                                                    </div>

                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 35%;">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 64%;">&nbsp;</td>
                                                            </tr>
                                                            <tr id="trCandidatePreference1" runat="server" visible="false">
                                                                <td align="right">Preference for Discussion Guide</td>
                                                                <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td id="tdCandidatePreference1" runat="server" align="left"></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 35%;">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 64%;">&nbsp;</td>
                                                            </tr>
                                                            <tr id="trCandidatePreference2" runat="server" visible="false">
                                                                <td align="right">Paired Candidate Details</td>
                                                                <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td id="tdCandidatePreference2" runat="server" align="left"></td>
                                                            </tr>
                                                            <tr id="trCandidatePreference3" runat="server" visible="false">
                                                                <td align="right" style="width: 35%;">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 64%;">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 35%;">Group Discussion Type&nbsp;<font color="red">*</font></td>
                                                                <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:DropDownList ID="ddlGroupDiscussiontype" runat="server" Width="250px"></asp:DropDownList>&nbsp;<asp:RequiredFieldValidator ID="rfvGroupDiscussiontype" ValidationGroup="SaveGDDetail" Display="Dynamic" InitialValue="0" ForeColor="red" ControlToValidate="ddlGroupDiscussiontype" runat="server" ErrorMessage="Select Group Discussion type"></asp:RequiredFieldValidator></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 35%;">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 64%;">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 35%;" valign="top">Location - Address&nbsp;<font color="red">*</font></td>
                                                                <td class="auto-style3" valign="top">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td style="width: 64%;">
                                                                    <asp:TextBox ID="txtGroupDiscussionLocation" TextMode="MultiLine" MaxLength="500" Height="80px" Width="295px" placeholder="Enter location details" runat="server"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="rfvGDLocation" ValidationGroup="SaveGDDetail" Display="Dynamic" ForeColor="red" ControlToValidate="txtGroupDiscussionLocation" runat="server" ErrorMessage="&nbsp;&nbsp;Enter Location"></asp:RequiredFieldValidator>
                                                                    <asp:RegularExpressionValidator ID="revGDLocation" Display="Dynamic" ValidationGroup="SaveGDDetail" ForeColor="red" runat="server" ControlToValidate="txtGroupDiscussionLocation" ValidationExpression="^[\s\S]{0,500}$" ErrorMessage="Maximum 500 characters allowed."></asp:RegularExpressionValidator></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 35%;">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 64%;">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 35%;" valign="top">&nbsp;Language for Moderation <font color="red">*</font></td>
                                                                <td class="auto-style3" valign="top">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:Panel Style="width: 300px; border: solid; border-color: #DEDCDC; height: 75px; borderwidth: 1px;" ID="pnlRd" ScrollBars="Vertical" runat="server">
                                                                        <asp:CheckBoxList ID="chkGroupDiscussionLanguage" runat="server" CssClass="extraBottomRemove"></asp:CheckBoxList>&nbsp;
                                                                    </asp:Panel>
                                                                    <asp:CustomValidator ID="cstGroupDiscussionLanguage" Display="Dynamic" runat="server" ValidationGroup="SaveGDDetail" ForeColor="red" ErrorMessage="Select Language" OnServerValidate="cstGroupDiscussionLanguage_ServerValidate"></asp:CustomValidator></td>
                                                            </tr>
                                                            <%-- brijal change as on 08112017  --%>
                                                            <%--<tr>
                                                                <td align="right" style="width: 35%;">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 64%;">&nbsp;</td>
                                                            </tr>--%>
                                                            <tr id="trAssModTime" runat="server" visible="false">
                                                                <td align="right" style="width: 35%;">Assessment + Moderation Time&nbsp;<font color="red">*</font></td>
                                                                <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td style="width: 64%;">

                                                                    <asp:DropDownList runat="server" ID="ddlHour" Width="55px" ClientIDMode="AutoID">
                                                                        <asp:ListItem Text="01" Value="01"></asp:ListItem>
                                                                        <asp:ListItem Text="02" Value="02"></asp:ListItem>
                                                                        <asp:ListItem Text="03" Value="03"></asp:ListItem>
                                                                        <asp:ListItem Text="04" Value="04"></asp:ListItem>
                                                                        <asp:ListItem Text="05" Value="05"></asp:ListItem>
                                                                        <asp:ListItem Text="06" Value="06"></asp:ListItem>
                                                                        <asp:ListItem Text="07" Value="07"></asp:ListItem>
                                                                        <asp:ListItem Text="08" Value="08"></asp:ListItem>
                                                                        <asp:ListItem Text="09" Value="09"></asp:ListItem>
                                                                        <asp:ListItem Text="10" Value="10" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="11" Value="11"></asp:ListItem>
                                                                        <asp:ListItem Text="12" Value="12"></asp:ListItem>
                                                                    </asp:DropDownList>Hr. &nbsp;
                                                                    <asp:DropDownList runat="server" ID="ddlMinute" Width="55px" ClientIDMode="AutoID">
                                                                        <asp:ListItem Text="00" Value="00" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="05" Value="05"></asp:ListItem>
                                                                        <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                        <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                        <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                                        <asp:ListItem Text="25" Value="25"></asp:ListItem>
                                                                        <asp:ListItem Text="30" Value="30"></asp:ListItem>
                                                                        <asp:ListItem Text="35" Value="35"></asp:ListItem>
                                                                        <asp:ListItem Text="40" Value="40"></asp:ListItem>
                                                                        <asp:ListItem Text="45" Value="45"></asp:ListItem>
                                                                        <asp:ListItem Text="50" Value="50"></asp:ListItem>
                                                                        <asp:ListItem Text="55" Value="55"></asp:ListItem>
                                                                    </asp:DropDownList>Mins. &nbsp; 
                                                                    <asp:DropDownList runat="server" ID="ddlAMPM" Width="70px" ClientIDMode="AutoID">
                                                                        <asp:ListItem Text="AM" Value="AM" Selected="True"></asp:ListItem>
                                                                        <asp:ListItem Text="PM" Value="PM"></asp:ListItem>

                                                                    </asp:DropDownList>&nbsp; 

                                                                    <asp:CustomValidator ID="cstGDCandidateTime" Display="Dynamic" runat="server" ValidationGroup="SaveGDDetail" ForeColor="red" ErrorMessage="Select Time As Per Assessor Availability" OnServerValidate="cstGDCandidateTime_ServerValidate"></asp:CustomValidator></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 35%;">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 64%;">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3" align="center">
                                                                    <asp:CustomValidator ID="cstAssessorDate" Display="Dynamic" runat="server" ValidationGroup="SaveGDDetail" ForeColor="red" ErrorMessage="Select Atleast One Time" OnServerValidate="cstAssessorDate_ServerValidate"></asp:CustomValidator></td>
                                                            </tr>

                                                            <tr>
                                                                <td colspan="3" style="text-align: center; font-size: 20px;">
                                                                    <b>Please check one or both session for any one date</b>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3">
                                                                    <asp:GridView ID="gvCandidateSelectAssessordate" runat="server" Width="95%" AutoGenerateColumns="False"
                                                                        OnRowDataBound="gvCandidateSelectAssessordate_RowDataBound" EmptyDataText="Assessor - Availability Calender is empty" PageSize="10" AllowPaging="true" OnPageIndexChanging="gvCandidateSelectAssessordate_PageIndexChanging">
                                                                        <Columns>
                                                                            <asp:BoundField DataField="GDDate" HeaderText="&nbsp;Assessment Date">
                                                                                <ItemStyle HorizontalAlign="Left" Width="20%" />
                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                            </asp:BoundField>
                                                                            <asp:TemplateField Visible="false">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="lblAssessorCalendarDetailID" runat="server" Text=""></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField>
                                                                                <HeaderTemplate>
                                                                                    &nbsp;&nbsp;First half (AM)
                                                                                </HeaderTemplate>
                                                                                <ItemTemplate>
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:CheckBox type="checkbox" runat="server" ID="chkApproveFirstHalf" CssClass="first" EnableViewState="true" onclick="checkAll(this,'I','first');" /></td>
                                                                                            <td>
                                                                                                <asp:Label ID="lblFHHour" runat="server" Text="" ClientIDMode="AutoID" Style="color: black;"></asp:Label>&nbsp;Hr. &nbsp;
                                                                        <asp:Label ID="lblFHMinute" runat="server" Text="" ClientIDMode="AutoID" Style="color: black;"></asp:Label>&nbsp;Mins. &nbsp; AM
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>


                                                                                </ItemTemplate>
                                                                                <ItemStyle Width="30%" />
                                                                            </asp:TemplateField>



                                                                            <asp:TemplateField>
                                                                                <HeaderTemplate>
                                                                                    &nbsp;&nbsp;Candidate
                                                                                </HeaderTemplate>
                                                                                <ItemTemplate>
                                                                                    <asp:CheckBox ID="chkCandidateFirstHalf" runat="server" CssClass="second" EnableViewState="true" onchange="fn_ProcessAssessorSelection(this);" />
                                                                                </ItemTemplate>
                                                                                <ItemStyle HorizontalAlign="Center" />
                                                                            </asp:TemplateField>



                                                                            <asp:TemplateField>
                                                                                <HeaderTemplate>
                                                                                    &nbsp;&nbsp;Second half (PM)
                                                                                </HeaderTemplate>
                                                                                <ItemTemplate>
                                                                                    <table>
                                                                                        <td>
                                                                                            <asp:CheckBox type="checkbox" runat="server" ID="chkApproveSecondHalf" CssClass="second" EnableViewState="true" onclick="checkAll(this,'I','second');" /></td>
                                                                                        <td>
                                                                                            <asp:Label ID="lblSHHour" runat="server" Text="" ClientIDMode="AutoID" Style="color: black;"></asp:Label>&nbsp;Hr. &nbsp;
                                                                        <asp:Label ID="lblSHMinute" runat="server" Text="" ClientIDMode="AutoID" Style="color: black;"></asp:Label>&nbsp;Mins. &nbsp; PM
                                                                                        </td>
                                                                                    </table>


                                                                                </ItemTemplate>
                                                                                <ItemStyle Width="30%" />
                                                                            </asp:TemplateField>

                                                                            <asp:TemplateField>
                                                                                <HeaderTemplate>
                                                                                    &nbsp;&nbsp;Candidate
                                                                                </HeaderTemplate>
                                                                                <ItemTemplate>
                                                                                    <asp:CheckBox ID="chkCandidateSecondHalf" runat="server" CssClass="second" EnableViewState="true" onchange="fn_ProcessAssessorSelection(this);" />
                                                                                </ItemTemplate>
                                                                                <ItemStyle HorizontalAlign="Center" />
                                                                            </asp:TemplateField>

                                                                        </Columns>
                                                                        <EmptyDataTemplate>
                                                                            <asp:Label ID="lblEmptydata" runat="server" Text="Assessor - Availability Calender is empty" ForeColor="White"></asp:Label>
                                                                        </EmptyDataTemplate>
                                                                        <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                        <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                                                                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                        <EditRowStyle BackColor="#CCCCCC" />
                                                                        <EmptyDataRowStyle BackColor="Black" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
                                                                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                                                    </asp:GridView>
                                                                    <br />

                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3">The first hour will be private session.<br />
                                                                    The second hour will be assessment + moderation.<br />
                                                                    The third hour is group discussion.
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 35%;">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 64%;">&nbsp;</td>
                                                            </tr>

                                                            <tr runat="server" id="vButton">
                                                                <td></td>
                                                                <td></td>
                                                                <td>
                                                                    <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" ValidationGroup="SaveGDDetail" />&nbsp;&nbsp;&nbsp;&nbsp;
                                                                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" />&nbsp;&nbsp;<asp:CustomValidator ID="cstGDAssessorCalanderMandatory" runat="server" Display="Dynamic" ForeColor="red" OnServerValidate="cstGDAssessorCalanderMandatory_ServerValidate" ValidationGroup="NextValidation"></asp:CustomValidator><asp:CustomValidator ID="cstGDPartnerValidation" runat="server" Display="Dynamic" ForeColor="red" OnServerValidate="cstGDPartnerValidation_ServerValidate" ValidationGroup="SaveGDDetail"></asp:CustomValidator>
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" id="vNwGDDateH" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: left">
                                                                    <div class="templeteheder">
                                                                        <h3>New Group Discussion + Interviews Date</h3>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                             <tr runat="server" id="vNwGDDateG">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <asp:GridView ID="gvCandidateGD" runat="server" AutoGenerateColumns="False">
                                                                        <Columns>
                                                                            <asp:BoundField DataField="GDDate" HeaderText="Date" />
                                                                            <asp:BoundField DataField="GDLocation" HeaderText="Location" Visible="False" />
                                                                            <asp:CheckBoxField DataField="FirstHalfCheck" HeaderText="FirstHalf" />
                                                                            <asp:CheckBoxField DataField="SecondHalfCheck" HeaderText="SecondHalf" />
                                                                            <asp:BoundField DataField="GDCandidateTime" HeaderText="CandidateTime" />
                                                                        </Columns>
                                                                    </asp:GridView>
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" id="vOldGDDateH" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: left">
                                                                    <div class="templeteheder">
                                                                        <h3>Cancelled Group Discussion + Interviews Date</h3>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                             <tr runat="server" id="vOldGDDateG">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <asp:GridView ID="gvCandidateOldGD" runat="server" AutoGenerateColumns="False">
                                                                        <Columns>
                                                                            <asp:BoundField DataField="GDDate" HeaderText="Date" />
                                                                            <asp:BoundField DataField="GDLocation" HeaderText="Location" Visible="False" />
                                                                            <asp:CheckBoxField DataField="FirstHalfCheck" HeaderText="FirstHalf" />
                                                                            <asp:CheckBoxField DataField="SecondHalfCheck" HeaderText="SecondHalf" />
                                                                            <asp:BoundField DataField="GDCandidateTime" HeaderText="CandidateTime" />
                                                                            <asp:BoundField DataField="EntryDate" HeaderText="EntryDate" />
                                                                            <asp:BoundField DataField="UserName" HeaderText="UserName" />
                                                                        </Columns>
                                                                    </asp:GridView>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3" style="text-align: left;">
                                                                    <h2>Discussion Guide Document</h2>

                                                                </td>
                                                            </tr>
                                                            <tr style="height: 10px;">
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                            </tr>
                                                           <%-- <tr>
                                                                <td style="text-align: right;" valign="top">Discussion Guide Written by <font color="red">*</font></td>
                                                                <td valign="top">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td runat="server" id="td2">
                                                                    <asp:DropDownList ID="ddlInternal_External" runat="server" AutoPostBack="true" ClientIDMode="AutoID" OnSelectedIndexChanged="ddlInternal_External_SelectedIndexChanged" Width="250px">
                                                                        <asp:ListItem Value="0">Not Applicable</asp:ListItem>
                                                                        <asp:ListItem Value="1">Internal Moderator</asp:ListItem>
                                                                        <asp:ListItem Value="2">External Moderator</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                            <tr style="height: 10px;">
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                            </tr>--%>
                                                            <tr runat="server" id="trCandidateName" visible="false">
                                                                <td style="text-align: right;">Candidate Name <font color="red">*</font></td>
                                                                <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>

                                                                    <asp:TextBox ID="txtCandidateName" runat="server" ClientIDMode="Static"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;Please type first 3 characters of the Candidate...<asp:CustomValidator ID="cstCandidateName" runat="server" Display="Dynamic" ForeColor="red" ErrorMessage="Enter Candidate Name" OnServerValidate="cstCandidateName_ServerValidate" ValidationGroup="GDDocumentValidate"></asp:CustomValidator>

                                                                </td>
                                                            </tr>
                                                            <tr style="height: 10px;" runat="server" id="trBlankRowCandidateName" visible="false">
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                            </tr>
                                                            <tr runat="server" id="trRegistrationNumber" visible="false">
                                                                <td style="text-align: right;">Registration Number <font color="red">*</font></td>
                                                                <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:TextBox ID="txtRegistrationNumber" runat="server" ClientIDMode="Static" EnableViewState="true"></asp:TextBox></td>
                                                            </tr>
                                                            <tr style="height: 10px;" runat="server" id="trBlankRowRegistrationNumber" visible="false">
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                            </tr>
                                                            <tr runat="server" id="trAssessorName" visible="false">
                                                                <td style="text-align: right;">External Moderator Name <font color="red">*</font></td>
                                                                <td>&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:TextBox ID="txtAssessorName" runat="server"></asp:TextBox>&nbsp;<asp:CustomValidator ID="cstAssessorName" runat="server" Display="Dynamic" ForeColor="red" ErrorMessage="Enter Assessor Name" OnServerValidate="cstAssessorName_ServerValidate" ValidationGroup="GDDocumentValidate"></asp:CustomValidator>

                                                                </td>
                                                            </tr>
                                                            <tr style="height: 10px;" visible="false">
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                            </tr>
                                                            <tr>
                                                                <td style="text-align: right;" valign="top">Upload Discussion Guide <font color="red">*</font></td>
                                                                <td valign="top">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:FileUpload ID="filGDDocument" runat="server" onchange="validateDiscussionFileSize();" /><br />
                                                                    &nbsp;<asp:Label runat="server" ID="lblMaxDiscussionFileSize" Text="" ForeColor="Red" Visible="true" ClientIDMode="Static"></asp:Label>
                                                                    <asp:CustomValidator ID="cstGDDocument" runat="server" Display="Dynamic" ForeColor="red" OnServerValidate="cstGDDocument_ServerValidate" ValidationGroup="GDDocumentValidate"></asp:CustomValidator>
                                                                    <label id="lblGDDocument" runat="server" style="color: black;">
                                                                    </label>
                                                                    <br />
                                                                    <asp:Button ID="btnGDDocument" runat="server" OnClick="btnGDDocument_Click" SkinID="buttonSkin" Text="Upload" ValidationGroup="GDDocumentValidate" />&nbsp;&nbsp;<asp:CustomValidator ID="cstGDDocumentMandatory" runat="server" Display="Dynamic" ForeColor="red" OnServerValidate="cstGDDocumentMandatory_ServerValidate" ValidationGroup="NextValidation"></asp:CustomValidator></td>

                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                            </tr>
                                                            <tr style="height: 10px;">
                                                                <td></td>
                                                                <td></td>
                                                                <td></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <div class="grd_table" style="overflow-x: auto;">
                                                                        <asp:GridView ID="gvGDDocument" runat="server" AllowPaging="True"
                                                                            DataKeyNames="CandidateBriefDocumentID" OnRowDataBound="gvGDDocument_RowDataBound" OnRowDeleting="gvGDDocument_RowDeleting"
                                                                            AutoGenerateColumns="False" Width="95%">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="DocumentPath" HeaderText="&nbsp;Discussion Guide">
                                                                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="20%" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="DocumentComment" InsertVisible="true" Visible="false" HeaderText=" Comments ">
                                                                                    <ItemStyle HorizontalAlign="Left" Width="40%" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="DocumentUpdateDate" HeaderText="&nbsp;Document Date ">
                                                                                    <ItemStyle HorizontalAlign="Left" Width="15%" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <%--<asp:TemplateField>
                                                                                                            <ItemTemplate>
                                                                                                                <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandArgument='<%# Eval("CandidateBriefDocumentID") %>' CommandName="Edit">Delete</asp:LinkButton>
                                                                                                            </ItemTemplate>
                                                                                                            <ItemStyle Width="15%" />
                                                                                                        </asp:TemplateField>--%>
                                                                                <asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkDelete" runat="server" CausesValidation="false" CommandArgument='<%# Eval("CandidateBriefDocumentID") %>' CommandName="Delete">Delete</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="10%" />
                                                                                </asp:TemplateField>
                                                                                <%-- <asp:TemplateField>
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandArgument='<%# Eval("CandidateBriefDocumentID") %>' CommandName="Edit">Download</asp:LinkButton>
                                                                                                                </ItemTemplate>
                                                                                                                <ItemStyle Width="15%" />
                                                                                                            </asp:TemplateField>--%>
                                                                                <asp:TemplateField ItemStyle-Width="10%">
                                                                                    <ItemTemplate>
                                                                                        <asp:HyperLink runat="server" NavigateUrl='<%# GetProposalBriefDocumentDownload(Eval("DocumentPath"))%>' Text="Download"></asp:HyperLink>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="10%" />
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                            <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                            <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                                                                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                            <EditRowStyle BackColor="#CCCCCC" />
                                                                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />

                                                                        </asp:GridView>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3" style="text-align: left;">
                                                                    <h2>Stimulus Upload</h2>

                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="text-align: right;" valign="top">Upload <font color="red">*</font></td>
                                                                <td valign="top">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:FileUpload ID="filStuDocument" runat="server" onchange="validateFileVideoSize();" /><br />
                                                                    &nbsp;<asp:Label runat="server" ID="lblMaxFileSize" Text="" ForeColor="Red" Visible="true" ClientIDMode="Static"></asp:Label>
                                                                    <asp:CustomValidator ID="cstSTDocument" runat="server" Display="Dynamic" ForeColor="red" OnServerValidate="cstSTDocument_ServerValidate" ValidationGroup="STDocumentValidate"></asp:CustomValidator>
                                                                    <label id="lblSTDocument" runat="server" style="color: black;">
                                                                    </label>
                                                                    <br />
                                                                    <asp:Button ID="btnStuDocument" runat="server" SkinID="buttonSkin" Text="Upload" ValidationGroup="STDocumentValidate" OnClick="btnStuDocument_Click" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <div class="grd_table" style="overflow-x: auto;">
                                                                        <asp:GridView ID="gvStDocument" runat="server" AllowPaging="true"
                                                                            DataKeyNames="CandidateBriefDocumentID" OnRowDataBound="gvStDocument_RowDataBound" OnRowDeleting="gvStDocument_RowDeleting"
                                                                            AutoGenerateColumns="false" PageSize="10" Width="95%">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="DocumentPath" HeaderText="&nbsp;Stimulus Document">
                                                                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="20%" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="DocumentComment" InsertVisible="true" Visible="false" HeaderText=" Comments ">
                                                                                    <ItemStyle HorizontalAlign="Left" Width="40%" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="DocumentUpdateDate" HeaderText="&nbsp;Document Date ">
                                                                                    <ItemStyle HorizontalAlign="Left" Width="15%" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <%--<asp:TemplateField>
                                                                                                            <ItemTemplate>
                                                                                                                <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandArgument='<%# Eval("CandidateBriefDocumentID") %>' CommandName="Edit">Delete</asp:LinkButton>
                                                                                                            </ItemTemplate>
                                                                                                            <ItemStyle Width="15%" />
                                                                                                        </asp:TemplateField>--%>
                                                                                <asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkDelete" runat="server" CausesValidation="false" CommandArgument='<%# Eval("CandidateBriefDocumentID") %>' CommandName="Delete">Delete</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="10%" />
                                                                                </asp:TemplateField>
                                                                                <%-- <asp:TemplateField>
                                                                                                                <ItemTemplate>
                                                                                                                    <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandArgument='<%# Eval("CandidateBriefDocumentID") %>' CommandName="Edit">Download</asp:LinkButton>
                                                                                                                </ItemTemplate>
                                                                                                                <ItemStyle Width="15%" />
                                                                                                            </asp:TemplateField>--%>
                                                                                <asp:TemplateField ItemStyle-Width="10%">
                                                                                    <ItemTemplate>
                                                                                        <asp:HyperLink runat="server" NavigateUrl='<%# GetProposalBriefDocumentDownload(Eval("DocumentPath"))%>' Text="Download"></asp:HyperLink>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                            <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                            <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                                                                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                            <EditRowStyle BackColor="#CCCCCC" />
                                                                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />

                                                                        </asp:GridView>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td class="auto-style4" style="vertical-align: text-top; text-align: right;">Please click on FINISH button to submit your documents to the Assessor<%--Please confirm for proceeding to the next step--%>&nbsp;<font color="red">*</font></td>
                                                                <td class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td style="vertical-align: text-top;">
                                                                    <asp:CheckBox ID="chkGDDocument" runat="server" Text="" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </asp:View>
                                                <asp:View ID="vwTab4" runat="server">
                                                    <table style="width: 98%; margin-top: 10px; margin-left: 25px;" id="tblContentAnalysis" cellspacing="1" cellpadding="1" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: left">
                                                                    <div class="templeteheder">
                                                                        <h2>Past Document</h2>
                                                                    </div>

                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 45%;">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 54%;">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="vertical-align: top; padding-top: 10px;" class="auto-style12">Upload Past Document&nbsp;<font color="red">*</font></td>
                                                                <td class="auto-style8" style="vertical-align: top; padding-top: 10px;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td class="auto-style9">
                                                                    <asp:FileUpload ID="filePastResearch" runat="server" onchange="validatePastResearchFileSize();" />
                                                                    &nbsp;<asp:Label runat="server" ID="lblMaxPastFileSize" Text="" ForeColor="Red" Visible="true" ClientIDMode="Static"></asp:Label>
                                                                    <asp:CustomValidator ID="cstPastResearch" runat="server" Display="Dynamic" ForeColor="red" OnServerValidate="cstPastResearch_ServerValidate" ValidationGroup="PASTRESEARCHVALIDATE"></asp:CustomValidator>

                                                                    <label id="lblPastResearch" runat="server" style="color: black;">
                                                                    </label>
                                                                    <br />
                                                                    <asp:Button ID="btnAddPastResearch" ValidationGroup="PASTRESEARCHVALIDATE" runat="server" OnClick="btnAddPastResearch_Click" SkinID="buttonSkin" Text="Upload" />
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr id="trComment5" runat="server" visible="false">
                                                                <td align="right" class="auto-style12">Comments about the file </td>
                                                                <td class="auto-style8">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td class="auto-style9">
                                                                    <asp:TextBox ID="txtPastResearch" runat="server" TextMode="MultiLine" Height="99px" Width="430px" MaxLength="500"></asp:TextBox><br />
                                                                    <asp:RegularExpressionValidator ID="rgePastResearch" Display="Dynamic" ValidationGroup="PASTRESEARCHVALIDATE" ForeColor="red" runat="server" ControlToValidate="txtPastResearch" ValidationExpression="^[\s\S]{0,500}$" ErrorMessage="Maximum 500 characters allowed."></asp:RegularExpressionValidator>
                                                                </td>
                                                            </tr>
                                                            <tr id="trComment6" runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;<asp:Button ID="btnCancelPastResearch" CausesValidation="false" OnClick="btnCancelPastResearch_Click" runat="server" SkinID="buttonSkin" Text="Cancel" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <div class="grd_table" style="overflow-x: auto; margin-left: 12%;">
                                                                        <asp:GridView ID="gvPastResearch" runat="server" PageSize="10" AllowPaging="true" Width="80%"
                                                                            DataKeyNames="CandidateBriefDocumentID" OnRowDataBound="gvPastResearch_RowDataBound" OnRowDeleting="gvPastResearch_RowDeleting"
                                                                            AutoGenerateColumns="false">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="DocumentPath" HeaderText="&nbsp;Past Research Document">
                                                                                    <ItemStyle Width="20%" HorizontalAlign="Left" VerticalAlign="Top" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>

                                                                                <asp:BoundField DataField="DocumentComment" InsertVisible="true" Visible="false" HeaderText=" Comments ">
                                                                                    <ItemStyle Width="40%" HorizontalAlign="Left" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="DocumentUpdateDate" HeaderText="&nbsp;Document Date ">
                                                                                    <ItemStyle Width="20%" HorizontalAlign="Left" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <%-- <asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit"
                                                                                            CommandArgument='<%# Eval("CandidateBriefDocumentID") %>'>Delete</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>--%>
                                                                                <asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkDelete" runat="server" CausesValidation="false" CommandArgument='<%# Eval("CandidateBriefDocumentID") %>' CommandName="Delete">Delete</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="10%" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField ItemStyle-Width="10%">
                                                                                    <ItemTemplate>
                                                                                        <asp:HyperLink runat="server" NavigateUrl='<%# GetProposalBriefDocumentDownload(Eval("DocumentPath"))%>' Text="Download"></asp:HyperLink>

                                                                                    </ItemTemplate>

                                                                                </asp:TemplateField>
                                                                                <%--<asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit"
                                                                                            CommandArgument='<%# Eval("CandidateBriefDocumentID") %>'>Download</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>--%>
                                                                            </Columns>
                                                                            <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                            <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                                                                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                                            <EditRowStyle BackColor="#CCCCCC" />
                                                                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3" style="text-align: center;">(Optional – If not required please click Next)</td>
                                                            </tr>

                                                            <tr>
                                                                <td align="right" style="width: 45%; height: 18px"></td>
                                                                <td class="auto-style3"></td>
                                                                <td style="width: 54%; height: 18px"></td>
                                                            </tr>
                                                            <%-- <tr>
                                                                <td class="auto-style4" style="vertical-align: text-top; text-align: right; padding-top: 3px;">Please confirm for proceeding to the next step&nbsp;<font color="red">*</font></td>
                                                                <td class="auto-style2" style="vertical-align: text-top; padding-top: 3px;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:CheckBox ID="chkPast" runat="server" Text="" />
                                                                </td>
                                                            </tr>--%>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center"></td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </asp:View>
                                                <asp:View ID="vwTab7" runat="server">
                                                    <table style="width: 98%; margin-top: 10px; margin-left: 25px;" id="tblMoreDetails" cellspacing="1" cellpadding="1" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: left">
                                                                    <div class="templeteheder">
                                                                        <h2>Assessor Questions</h2>
                                                                    </div>

                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="width: 35%; text-align: right;" class="auto-style10">Questions from Assessor?
                                                                </td>
                                                                <td class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td style="width: 64%; text-align: left;">
                                                                    <asp:TextBox ID="txtQuestionMore" TextMode="MultiLine" Enabled="false" runat="server" Width="500px" MaxLength="500"></asp:TextBox><br />
                                                                    <asp:RegularExpressionValidator ID="revQuestionMore" Display="Dynamic" ValidationGroup="MOREDETAIL" ForeColor="red" runat="server" ControlToValidate="txtQuestionMore" ValidationExpression="^[\s\S]{0,500}$" ErrorMessage="Maximum 500 characters allowed."></asp:RegularExpressionValidator>

                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td></td>
                                                                <td></td>
                                                                <td>
                                                                    <asp:Label ID="lbltxtQuestionMore" Style="float: right; width: 40%;" runat="server" Text=""></asp:Label>
                                                                </td>
                                                            </tr>


                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="width: 35%; text-align: right;" class="auto-style10">Your Comments
                                                                </td>
                                                                <td class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td style="width: 64%; text-align: left;">
                                                                    <asp:TextBox ID="txtCommentsMore" TextMode="MultiLine" runat="server" Width="500px" MaxLength="500"></asp:TextBox><br />
                                                                    <asp:RequiredFieldValidator ID="reqMoreComment" ValidationGroup="MORECOMMENT" Display="Dynamic" ForeColor="red" ControlToValidate="txtCommentsMore" runat="server" ErrorMessage="Enter your comments."></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="regExpValMoreComment" Display="Dynamic" ValidationGroup="MORECOMMENT" ForeColor="red" runat="server" ControlToValidate="txtCommentsMore" ValidationExpression="^[\s\S]{0,500}$" ErrorMessage="Maximum 500 characters allowed."></asp:RegularExpressionValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td></td>
                                                                <td></td>
                                                                <td>
                                                                    <asp:Label ID="lblCommentsMore" Style="float: right; width: 40%;" runat="server" Text=""></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;<asp:Button ID="btnMoreCommentAdd" ValidationGroup="MORECOMMENT" runat="server" OnClick="btnMoreCommentAdd_Click" SkinID="buttonSkin" Text="Add" />&nbsp;<asp:Button ID="btnMoreCommentCancel" runat="server" SkinID="buttonSkin" Text="Cancel" />
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </asp:View>
                                            </asp:MultiView>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                           <%-- <asp:Button ID="btnPervious" runat="server" Text="Previous" OnClick="btnPervious_Click" />&nbsp;&nbsp;<asp:Button ID="btnNext" runat="server" Text="Next" ValidationGroup="NextValidation" OnClientClick="return confirmation();" OnClick="btnNext_Click" />--%>
                                            <table>
                                                <tr>
                                                    <td id="tdActionPanel" runat="server" style="text-align: center; width: 25%">
                                                        <asp:Button ID="btnPervious" runat="server" Text="Previous" OnClick="btnPervious_Click" />&nbsp;&nbsp;
                                                        <asp:Button ID="btnNext" runat="server" Text="Next" ValidationGroup="NextValidation" OnClientClick="return confirmation();" OnClick="btnNext_Click" />
                                                    </td>
                                                    <td id="tdPreFinish" runat="server" style="text-align: center; width: 50%" visible="false">
                                                        <asp:Button ID="btnPreFinish" runat="server" Text="Finish" ValidationGroup="NextValidation" OnClick="btnPreFinish_Click" OnClientClick="return ConfirmationForPreSave();" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="height: 40px;"></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:HiddenField runat="server" ID="hdnCanGDDate" />
                                            <asp:HiddenField runat="server" ID="hdnPartnerID" />
                                            <asp:HiddenField runat="server" ID="hdnCandidateBriefId" />
                                            <asp:HiddenField runat="server" ID="hdnCandidateStatus" />
                                            <asp:HiddenField ID="hdnStageMode" runat="server" />
                                            <asp:HiddenField ID="hdnProposalStageMode" runat="server" />
                                            <asp:HiddenField ID="hdnGDStageMode" runat="server" />
                                            <asp:HiddenField ID="hdnPastStageMode" runat="server" />
                                            <asp:HiddenField ID="hdnCandidateID" EnableViewState="true" runat="server" />
                                            <asp:HiddenField ID="hdnCandidateStageComplted" EnableViewState="true" runat="server" />
                                            <asp:HiddenField ID="hdnBriefID" EnableViewState="true" runat="server" />
                                            <asp:HiddenField ID="hdnMenuMoreDetail" EnableViewState="true" runat="server" />
                                            <asp:HiddenField ID="hdnCandidateQueryID" EnableViewState="true" runat="server" />
                                            <asp:HiddenField ID="hdnGDCandidateID" EnableViewState="true" runat="server" ClientIDMode="Static" />
                                            <asp:HiddenField ID="hdnAssessorCalendarDetailID" EnableViewState="true" runat="server" />
                                            <asp:HiddenField ID="hdnCandidateGDID" EnableViewState="true" runat="server" />

                                        </td>
                                    </tr>

                                </tbody>
                            </table>
                        </ContentTemplate>
                        <Triggers>
                            <asp:PostBackTrigger ControlID="btnProposal" />
                            <asp:PostBackTrigger ControlID="btnGDDocument" />
                            <asp:PostBackTrigger ControlID="btnAddPastResearch" />
                            <asp:PostBackTrigger ControlID="btnPervious" />
                            <asp:PostBackTrigger ControlID="btnNext" />
                            <asp:PostBackTrigger ControlID="btnStuDocument" />
                            <asp:PostBackTrigger ControlID="btnSave" />
                            <%--<asp:AsyncPostBackTrigger ControlID="ddlInternal_External" EventName="SelectedIndexChanged" />--%>
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
